package com.shop.service;

import com.shop.pojo.pms.Pms_Attr_Attrgroup_Relation;
import com.shop.utils.R;
import com.shop.vo.AttrByattr_Group;
import com.shop.vo.SpuItemAttrGroupVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Pms_AttrOrAttrGroup_Service {
    //根据分类id和spuid来连表查询数据
    public List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long catalogId,Long spuId);
    //根据分类ID和分组id来查询当前分类下的分组的全部属性
    public R findAllAttrGroupByCatalogId(Long catelogId,Long attr_group_id) ;
    //添加分组中间表
    public R addAttrGroupRelation(String AttrIdStr,Long catelogId,Long attr_group_id);
    //删除分组中间表里的某些信息
    public R delAttrGroupRelation(String AttrIdStr,Long catelogId,Long attr_group_id);
    //查询当前分类下的分组的全部属性
    public R findAllAttrByAttr_Group(Long catelogId);
}
